Skip to content

Conversation

@bjorn3
Copy link
Contributor

@bjorn3 bjorn3 commented Jan 3, 2026

Together with an incorrect assertion, the lack of this caused jumps to random memory locations if the target is too far away.

Fixes rust-lang/rustc_codegen_cranelift#1619

bjorn3 added 3 commits January 3, 2026 11:13
It is a wasmtime specific format that doesn't match what cranelift-jit
could register with the system unwinder in the future.
@bjorn3 bjorn3 requested a review from a team as a code owner January 3, 2026 12:20
@bjorn3 bjorn3 requested review from fitzgen and removed request for a team January 3, 2026 12:20
@bjorn3 bjorn3 force-pushed the cranelift_jit_fixes branch 3 times, most recently from d3ab84d to d4569d5 Compare January 3, 2026 12:42
@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator cranelift:module labels Jan 3, 2026
Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just one tiny suggestion below.

@fitzgen fitzgen added this pull request to the merge queue Jan 5, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 5, 2026
@bjorn3 bjorn3 force-pushed the cranelift_jit_fixes branch from c6e831e to 6fb2a9d Compare January 11, 2026 19:04
@bjorn3
Copy link
Contributor Author

bjorn3 commented Jan 11, 2026

Fixed the missing import on Windows.

@alexcrichton alexcrichton added this pull request to the merge queue Jan 12, 2026
Merged via the queue into bytecodealliance:main with commit 73ef034 Jan 12, 2026
45 checks passed
@bjorn3 bjorn3 deleted the cranelift_jit_fixes branch January 12, 2026 16:03
bjorn3 added a commit to bjorn3/wasmtime that referenced this pull request Jan 12, 2026
…iance#12239)

* Remove unnecessary methods from JITModule Module impl

* Fix range assertion in cranelift-jit Arm64Call reloc handling

* Rename exception_data to wasmtime_exception_data

It is a wasmtime specific format that doesn't match what cranelift-jit
could register with the system unwinder in the future.

* Move memory allocation into CompiledBlob

In preparation for inserting veneers on arm64.

* Respect addend for Arm64Call relocs

* Insert veneers on arm64 in cranelift-jit where necessary

* Rename const item
alexcrichton pushed a commit that referenced this pull request Jan 12, 2026
…2320)

* Remove unnecessary methods from JITModule Module impl

* Fix range assertion in cranelift-jit Arm64Call reloc handling

* Rename exception_data to wasmtime_exception_data

It is a wasmtime specific format that doesn't match what cranelift-jit
could register with the system unwinder in the future.

* Move memory allocation into CompiledBlob

In preparation for inserting veneers on arm64.

* Respect addend for Arm64Call relocs

* Insert veneers on arm64 in cranelift-jit where necessary

* Rename const item
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift:module cranelift Issues related to the Cranelift code generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

std_example jit test broken with latest nightly

3 participants